#define  _CRT_SECURE_NO_WARNINGS
#include"list.h"

struct stu
{
	string _name;
	int _age;

	stu(string name = "0", int age = 0) :
		_name(name),
		_age(age)
	{}
};

void test01()
{
	//bit::list<stu> lt;
	//lt.push_back({"1",16});
	//lt.push_back({ "2",17 });
	//lt.push_back({ "3",18 });
	//lt.push_back({ "4",19 });

	//const bit::list<stu> lt2(lt);
	//bit::list<stu>::const_iterator it = lt2.begin();
	//while (it != lt2.end())
	//{
	//	//(*it)._age++;
	//	cout << it->_name << ' ' << it->_age << endl;
	//	it++;
	//}
	bit::list<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);
	//lt.push_front(50);
	//lt.insert(lt.begin(), 100);
	//lt.erase(lt.begin());
	//lt.clear();
	//const bit::list<int> lt2(lt);
	bit::list<int> lt1 = { 10,20,30,40 };
	bit::list<int>::reverse_iterator  it = lt1.rbegin();
	while (it != lt1.rend())
	{
		cout << *it << ' ' ;
		it++;
	}

}

int main()
{
	test01();
	return 0;
}